<!DOCTYPE html>
<HTML>
<HEAD><meta name="viewport" content="width=device-width, initial-scale=1">
<Title>ColorAxis.setColorGradient</Title>
<link type='text/css' rel='Stylesheet' href="maxchartapi.css" />
</HEAD>
<body bgcolor="#FFFFFF" text="#000000" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">

<p class="heading0">ChartDirector 7.0 (Java Edition)</p>
<p class="heading1"><a href="ColorAxis.htm">ColorAxis</a>.<wbr>setColorGradient</p>
<hr class="separator">
<p class="heading2a">Usage</p>
<div class="content">
public void setColorGradient([ boolean isContinuous [, int[] colors [, int underflowColor [, int overflowColor ]]]])
</div>
<p class="heading2">Description</p>
<div class="content">
Sets the continuous color gradient or discrete color steps for the color axis.
</div>
<p class="heading2">Arguments</p>
<div class="content">
<div style="width:100%;box-sizing:border-box;">
<table border="1" cellpadding="5" cellspacing="0" width="100%"> 
<tr>
<th width="19%">Argument</th><th width="19%">Default</th><th>Description</th>
</tr>
<tr>
<td>isContinuous</td><td>true</td><td>True ti set to continuous color gradient. False to set to discrete color steps.</td></tr><tr><td>colors</td><td>[Empty_Array]</td><td>An array of colors used to define the continuous color gradient. If an empty array is used, the colors are automatically determined.<br><br>
ChartDirector will interpolate between the colors to create the continuous gradient. If discrete color steps are used, ChartDirector will take samples along the continuous color gradient. The number of samples is determined by the number of ticks on the axis, and may not equal the number of colors in the colors array.</td></tr><tr><td>underflowColor</td><td>-1</td><td>The color to use if a value falls below the minimum value of the axis scale. -1 means the underflowColor is the same color at the minimum value.</td></tr><tr><td>overflowColor</td><td>-1</td><td>The color to use if a value exceeds the maximum value of the axis scale. -1 means the overflowColor is the same color at the maximum value.</td>
</tr>
</table>
</div>
</div>
<p class="heading2">Return Value</p>
<div class="content">
None
</div>
<br><hr class="separator">
<div class="copyright">&copy; 2022 Advanced Software Engineering Limited. All rights reserved.</div>
</body>
</HTML>
